package com.klf.system.bo;

import java.util.List;

import com.klf.po.SysPopedom;
import com.klf.system.dao.SysPopedomDAOImpl;

public class SysPopedomBoImpl implements ISysPopedomBo {
	
	@SuppressWarnings("unused")
	private SysPopedomDAOImpl sysPopedomDAOImpl;
	


	public SysPopedomDAOImpl getSysPopedomDAOImpl() {
		return sysPopedomDAOImpl;
	}

	public void setSysPopedomDAOImpl(SysPopedomDAOImpl sysPopedomDAOImpl) {
		this.sysPopedomDAOImpl = sysPopedomDAOImpl;
	}

	public void add(Object obj){
		// TODO Auto-generated method stub
		try {
			SysPopedom c = (SysPopedom)obj;
			sysPopedomDAOImpl.add(c);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public void delete(Long[] id) {
		// TODO Auto-generated method stub
		try {
			sysPopedomDAOImpl.deleteByIds(SysPopedom.class, id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public void delete(Long id) {
		// TODO Auto-generated method stub
		try {
			sysPopedomDAOImpl.deleteById(SysPopedom.class, id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public List<SysPopedom> getAll(String className) {
		// TODO Auto-generated method stub
		try {
			List list = sysPopedomDAOImpl.getAll(className);
			List<SysPopedom> ls = list;
			return ls;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	public Object getObjectById(Long id) {
		// TODO Auto-generated method stub
		try {
			return sysPopedomDAOImpl.getObjectById(SysPopedom.class, id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	public void update(Object obj) {
		// TODO Auto-generated method stub
		
	}

	

}
